/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.biz.entity;

import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 订单流水管理Entity
 * @author admin
 * @version 2019-07-30
 */
public class BizOrderDetail extends DataEntity<BizOrderDetail> {
	
	private static final long serialVersionUID = 1L;
	private Long orderNo;		// 订单编号
	private User user;		// 用户编号
	private Long machineId;		// 机器编号
	private Long productId;		// 商品编号
	private String payMoney;		// 支付金额
	private String soldQty;		// 售卖份数
	
	public BizOrderDetail() {
		super();
	}

	public BizOrderDetail(String id){
		super(id);
	}

	public Long getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(Long orderNo) {
		this.orderNo = orderNo;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	public Long getMachineId() {
		return machineId;
	}

	public void setMachineId(Long machineId) {
		this.machineId = machineId;
	}
	
	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}
	
	public String getPayMoney() {
		return payMoney;
	}

	public void setPayMoney(String payMoney) {
		this.payMoney = payMoney;
	}
	
	@Length(min=0, max=5, message="售卖份数长度必须介于 0 和 5 之间")
	public String getSoldQty() {
		return soldQty;
	}

	public void setSoldQty(String soldQty) {
		this.soldQty = soldQty;
	}
	
}